import 'package:aio/aio.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:app/generated/app_strings.dart';
import 'package:app/src/http/bean/wroks/attachment_bean.dart';
import 'package:app/src/http/bean/wroks/contract_bean.dart';
import 'package:app/src/http/bean/wroks/customers_copyInfo.dart';
import 'package:app/src/ui/app_ui.dart';
import 'package:app/src/ui/route/works/public/items/ui_base.dart';
import 'package:app/src/ui/route/works/public/items/ui_card.dart';
import 'package:app/src/utils/image_path_utils.dart';

///备注
class UiNote {
  ///title 标题
  static Widget build(BuildContext context, String? data, String? oldData,
      {String? title}) {
    if (StringUtils.isEmpty(data)) {
      return AppUi.getEmptyView();
    }
    if (StringUtils.isEmpty(title)) {
      title = AppStrings.of(context).Note; //备注
    }
    List<Widget> children = [];
    children.add(UiBase.title(context, title));
    children.add(UiBase.itemWithSingle(context, data, oldData));
    var column = UiBase.column(context, children);
    var card = UiCard.build(context, column);
    return card;
  }
}
